<@override name="title">商场活动</@override>

<@override name="viewbody">
<!-- Page title -->
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            商场活动管理
            <small>商场活动列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    商场活动
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- /page title -->

<div class="row">
    <div class="col-md-12">
        <div class="portlet box light-grey">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>商场活动一览表
                </div>
            </div>

            <div class="portlet-body">

                <div class="table-toolbar">
                    <form action="#" role="form" class="form-inline" id="search_form">
                        <div class="form-group">
                            <label for="floor" class="control-label">活动名称：</label>
                            <input type="text" class="form-control input-sm" name="name" placeholder="请输入活动名称">
                        </div>
                        <button class="btn btn-sm blue filter-submit margin-bottom" id="search_btn">
                            <i class="fa fa-search"></i> 检索
                        </button>
                    </form>
                </div>
                <div class="table-toolbar">
                    <div class="btn-group">
                        <a id="sample_editable_1_new" href="${ctx}/admin/activity/activityMall/create" class="btn default green-stripe">
                            新增 <i class="fa fa-plus"></i>
                        </a>
                        <a id="sample_editable_1_new" class="btn default yellow-stripe batchdelete"
                           data-action="${ctx}/admin/activity/activityMall/remove" data-tables="#data-list" data-message="您确认删除所选择的类型信息么？">
                            删除 <i class="fa fa-ban"></i>
                        </a>
                        <a id="sample_editable_1_new" class="btn default red-stripe batchstop"
                           data-action="${ctx}/admin/activity/activityMall/stop"
                           data-tables="#data-list" data-message="你确定要停用所选择的活动吗？">
                            停用 <i class="fa fa-ban"></i>
                        </a>
                    </div>
                    <div class="btn-group pull-right">

                    </div>

                </div>
                <table class="table table-striped table-bordered table-hover" id="data-list">
                    <thead>
                    <tr>
                        <th width="30"><input type="checkbox" name="checkall"></th>
                        <th width="30">序号</th>
                        <th>活动名称</th>
                        <th>开始时间</th>
                        <th>结束时间</th>
                        <th>活动状态</th>
                        <th>报名状态</th>
                        <th>排序</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>

        </div>
    </div>
</div>

<script id="pricute_template" type="text/x-handlebars-template">
    {{#if picture}}
    <a href="${ctx}{{picture}}" class="thumbnail fancybox-button" data-rel="fancybox-button">
        <img class="" src="${ctx}{{portfolio}}" alt="">
    </a>
    {{else}}
    暂无图片
    {{/if}}
</script>


<script id="action_template" type="text/x-handlebars-template">
    <div class="table-controls">
        <a href="${ctx}/admin/activity/activityMall/edit/{{id}}" class="btn default blue-stripe" title="编辑"><i
                class="fa fa-edit"></i></a>
        <a href="javascript:void(0);" class="btn default yellow-stripe" title="删除"
           data-hook="remove-action" data-action="${ctx}/admin/activity/activityMall/remove?DATA={{id}}">
            <i class="fa fa-trash-o"></i></a>

        {{#if state}}
        <a href="javascript:void(0);" class="btn default red-stripe" title="活动停用"
           data-hook="stop-action" data-message="你确定要停用该活动吗" data-action="${ctx}/admin/activity/activityMall/stop?DATA={{id}}">
            <i class="fa fa-eye-slash"></i></a>
        {{else}}
        <a href="javascript:void(0);" class="btn default red-stripe" title="活动启用"
           data-hook="stop-action" data-message="你确定要启用该活动吗" data-action="${ctx}/admin/activity/activityMall/run?DATA={{id}}">
            <i class="fa fa-eye"></i></a>
        {{/if}}

        {{#if is_enroll}}
        <a href="javascript:void(0);" class="btn default red-stripe" title="禁止报名"
           data-hook="stop-action" data-message="你确定要禁止报名吗" data-action="${ctx}/admin/activity/activityMall/stopEnroll?DATA={{id}}">
            <i class="fa fa-unlock-alt"></i></a>
        {{else}}
        <a href="javascript:void(0);" class="btn default red-stripe" title="开启报名"
           data-hook="stop-action" data-message="你确定要启用报名吗" data-action="${ctx}/admin/activity/activityMall/runEnroll?DATA={{id}}">
            <i class="fa fa-unlock"></i></a>
        {{/if}}
    </div>
</script>

</@override>
<@override name="viewmodule">activity_mall</@override>
<@extends name="../../_basic/main.ftl"></@extends>
